package com.lichuang.springboot.study.lichuangspringbootproject.parent.command;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.Arrays;

@Component
public class MyCommandLineRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        if(args!=null&&args.length>0){
            System.out.println(Arrays.toString(args));
        }
        System.out.println("CommandLineRunner:自动完成时执行的代码");
    }

}
